package bean

// Codemirror Editor Config
type CodemirrorConfig struct {
	CodemiirrorMata *CodemirrorMetaConfig
}

// Codemirror Metas Configs
type CodemirrorMetaConfig struct {
	Metas []CodeMirrorMeta `yaml:"metas"`
}

type CodeMirrorMeta struct {
	Name         string   `yaml:"name"`
	Mime         string   `yaml:"mime"`
	Mode         string   `yaml:"mode"`
	Exts         []string `yaml:"ext"`
	Alias        []string `yaml:"alias"`
	Dependencies []string `yaml:"dependencies"` // 依赖 Mode 模组
	Addons       []string `yaml:"addons"`
}

type SuffixItemMetaInfo struct {
	Name         string   `json:"name"`
	Mime         string   `json:"mime"`
	Mode         string   `json:"mode"`
	Ext          string   `json:"ext"`
	Dependencies []string `json:"dependencies"` // 依赖 Mode 模组
	Addons       []string `json:"addons"`       // 该后缀文件需要特殊的组建支持
}
